﻿@model Fyp.Models.Student
@{
    var PageTitle = "EditStudent";
    Layout = "~/Shared/_layoutPage.cshtml";
    
    
}
@section title
{
 @PageTitle
}
<link rel="stylesheet" type="text/css" href="~/Styles/template.css" media="screen">
<style>
      #de{
            margin-right: 10px;
         
            margin-top:10px;
            margin-left:50px;
        }
    </style>
<div id="main" class = "background">

<strong>
            <div id="content"  style="margin-left: 98px;margin-bottom: -1px;">
                 <h2 style="text-align: center;margin-left:-40px;">Edit Student</h2>
             </div>
    </strong>   
    @using (Html.BeginForm()) {    
   @Html.ValidationSummary(true)
        <div id="de" style="margin-top: 0px;">
        <table style="margin-left:-700px;margin-bottom: 10px ">
            <tbody>
                <tr><td>
        @Html.HiddenFor(model => model.SId)
                </td></tr>
                <tr><td>
        <div class="editor-label" style="margin-top: 73px;">
            @Html.LabelFor(model => model.Std_Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Std_Name)
            @Html.ValidationMessageFor(model => model.Std_Name)
        </div>
                    </td></tr>
 <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Std_RegId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Std_RegId)
            @Html.ValidationMessageFor(model => model.Std_RegId)
        </div></td></tr>
 <tr><td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Std_Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Std_Email)
            @Html.ValidationMessageFor(model => model.Std_Email)
        </div></td></tr>
                <tr><td>
                 <div class="editor-field">
            @Html.EditorFor(model => model.GId)
            @Html.ValidationMessageFor(model => model.GId)
                   
        </div>  </td></tr>
     <tr><td>
         <p>
            <input type="submit"class = "buttonSave"  value="Save"style="margin-top: 12px;" />
        </p>
    </td></tr>
                </tbody>
            </table>
            </div>
       @* <div class="editor-label">
            @Html.LabelFor(model => model.GId)
        </div>*@
        @*<div class="editor-field">
            <select name="GroupField">
        <option>-Select-</option>
         @for (int i = 0; i <global.glist.Count();i++ )
         { 
       
       <option value ="@global.glist[i].GId">@global.glist[i].GId</option>
        }
        </select>*@
            @*@Html.DropDownListFor(model => model.GId)
            @Html.ValidationMessageFor(model => model.GId)*@
       
    }
 </div>